for i in range(1,101):
    if "7" in str(i) or int(i)%7 ==0:
        print('*',end=',')
    else:
        print(i,end=',')